package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the DRUGSTORE_DEMAGE database table.
 * 
 */
@Entity
@Table(name="DRUGSTORE_DEMAGE")
@NamedQuery(name="DrugstoreDemage.findAll", query="SELECT d FROM DrugstoreDemage d")
public class DrugstoreDemage implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="DRUGSTORE_DEMAGE_ID")
	private long drugstoreDemageId;

	@Column(name="DEMAGE_DRUGS_COST")
	private BigDecimal demageDrugsCost;

	@Temporal(TemporalType.DATE)
	@Column(name="DEMAGE_DRUGS_DATE")
	private Date demageDrugsDate;

	@Column(name="DEMAGE_DRUGS_NUMBER")
	private BigDecimal demageDrugsNumber;

	@Column(name="DEMAGE_NOTE")
	private String demageNote;

	@Column(name="DEMAGE_RESON")
	private String demageReson;

	//bi-directional many-to-one association to Medcinestore
	@ManyToOne
	@JoinColumn(name="MEDCINESTORE_ID")
	private Medcinestore medcinestore;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public DrugstoreDemage() {
	}

	public long getDrugstoreDemageId() {
		return this.drugstoreDemageId;
	}

	public void setDrugstoreDemageId(long drugstoreDemageId) {
		this.drugstoreDemageId = drugstoreDemageId;
	}

	public BigDecimal getDemageDrugsCost() {
		return this.demageDrugsCost;
	}

	public void setDemageDrugsCost(BigDecimal demageDrugsCost) {
		this.demageDrugsCost = demageDrugsCost;
	}

	public Date getDemageDrugsDate() {
		return this.demageDrugsDate;
	}

	public void setDemageDrugsDate(Date demageDrugsDate) {
		this.demageDrugsDate = demageDrugsDate;
	}

	public BigDecimal getDemageDrugsNumber() {
		return this.demageDrugsNumber;
	}

	public void setDemageDrugsNumber(BigDecimal demageDrugsNumber) {
		this.demageDrugsNumber = demageDrugsNumber;
	}

	public String getDemageNote() {
		return this.demageNote;
	}

	public void setDemageNote(String demageNote) {
		this.demageNote = demageNote;
	}

	public String getDemageReson() {
		return this.demageReson;
	}

	public void setDemageReson(String demageReson) {
		this.demageReson = demageReson;
	}

	public Medcinestore getMedcinestore() {
		return this.medcinestore;
	}

	public void setMedcinestore(Medcinestore medcinestore) {
		this.medcinestore = medcinestore;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}